package com.twu.biblioteca;

public class Reserver {
    private static final String RESERVATION_SUCCESS = "Thank You! Enjoy the book.";
    private static final String RESERVATION_FAILED = "Sorry we don't have that book yet.";

    public String reserveItem(Borrowable item, int customerId)
    {
        if(item != null && item.getCustomerId() == 0)
        {
            item.setCustomerId(customerId);
            return RESERVATION_SUCCESS;
        }
        return RESERVATION_FAILED;
    }
}
